package org.yuxiong.utils.proxy.server;

import org.apache.commons.lang.builder.ToStringBuilder;

public class Server {

	private String ip;
	private int port;
	public Server(String ip, int port) {
		super();
		this.ip = ip;
		this.port = port;
	}
	/**
	 * @return the ip
	 */
	public String getIp() {
		return ip;
	}
	/**
	 * @param ip the ip to set
	 */
	public void setIp(String ip) {
		this.ip = ip;
	}
	/**
	 * @return the port
	 */
	public int getPort() {
		return port;
	}
	/**
	 * @param port the port to set
	 */
	public void setPort(int port) {
		this.port = port;
	}
	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new ToStringBuilder(this).append("ip",
				this.ip).append("port", this.port).toString();
	}
	
}
